package one.stand.service.checkparam;

import one.stand.request.WxLoginRequest;
import org.springframework.util.StringUtils;

/**
 * @author Administrator
 */
public class HomeServiceCheckParam {
    /**
     * 微信登陆验证
     *
     * @return
     */
    public static boolean wxLogin(WxLoginRequest requerst) {
        if (StringUtils.isEmpty(requerst.getCode())
                || StringUtils.isEmpty(requerst.getRawData())
                ||StringUtils.isEmpty(requerst.getEncrypteData())
                ||StringUtils.isEmpty(requerst.getIv())
                ||StringUtils.isEmpty(requerst.getSignature())) {
            return true;
        }
        return false;
    }

}
